package cse333.panels;

import cse333.PanelSwitcher;
import cse333.SwitchablePanel;
import cse333.UserSignUpPanel;

public class SearchScholarshipPanel extends SwitchablePanel {

    
    private PanelSwitcher pc;
    /**
     * Creates new form SearchScholarshipPanel
     */
    public SearchScholarshipPanel(PanelSwitcher pc) {
        initComponents();
        this.pc = pc;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        welcomeLabel = new javax.swing.JLabel();

        setBackground(new java.awt.Color(0, 0, 0));
        setLayout(new java.awt.GridBagLayout());

        welcomeLabel.setForeground(new java.awt.Color(255, 255, 255));
        welcomeLabel.setText("<html><center>Welcome to the Scholarship Review System</center><br/><br/>Using this system you will be able to look for scholarships suitable for you and apply for them! If you are a student, sign\nup at the button right of this page and start looking!</html>");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
        add(welcomeLabel, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel welcomeLabel;
    // End of variables declaration//GEN-END:variables

    @Override
    public void sendData(Object object) {
        
    }

    @Override
    public void onSwitch() {
        // Reset everything
        removeAll();
        initComponents();
        invalidate();
        repaint();
    }
}
